package com.vichat.workflow.entity;


import com.alibaba.fastjson.JSON;

import java.util.List;

import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-05-22 09:04:48.892
 */
@Entity
@Table(name = "WF_NODE_ATTR_FIELDSET",catalog = "wfdb")
public class WfNodeAttrFieldset implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_NODE_ATTR_FIELDSET";

    /**属性块编号 */
	public static final String ALIAS_FIELDSET_ID = "FIELDSET_ID";
    /**流程节点编号 */
	public static final String ALIAS_NODE_ID = "NODE_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**属性块编码 */
	public static final String ALIAS_FIELD_CODE = "FIELD_CODE";
    /**属性块名称 */
	public static final String ALIAS_FIELD_NAME = "FIELD_NAME";
    /**排序 */
	public static final String ALIAS_SORT = "SORT";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "FIELDSET_ID", unique = true, nullable = false)
    public java.lang.Long fieldsetId;
  
 	@Column(name = "NODE_ID")
    public java.lang.Long nodeId;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "FIELD_CODE")
    public java.lang.String fieldCode;
  
 	@Column(name = "FIELD_NAME")
    public java.lang.String fieldName;
  
 	@Column(name = "SORT")
    public java.lang.Long sort;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  





	public java.lang.Long getFieldsetId() {
		return this.fieldsetId;
	}
	
	public void setFieldsetId(java.lang.Long value) {
		this.fieldsetId = value;
	}

	public java.lang.Long getNodeId() {
		return this.nodeId;
	}
	
	public void setNodeId(java.lang.Long value) {
		this.nodeId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getFieldCode() {
		return this.fieldCode;
	}
	
	public void setFieldCode(java.lang.String value) {
		this.fieldCode = value;
	}

	public java.lang.String getFieldName() {
		return this.fieldName;
	}
	
	public void setFieldName(java.lang.String value) {
		this.fieldName = value;
	}

	public java.lang.Long getSort() {
		return this.sort;
	}
	
	public void setSort(java.lang.Long value) {
		this.sort = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}


	
	public WfNodeAttrFieldset() {
	}
	
	public WfNodeAttrFieldset(boolean qryflag) {
	    if(qryflag){
	    		this.fieldsetId = null;
				this.nodeId = null;
				this.flowId = null;
				this.fieldCode = null;
				this.fieldName = null;
				this.sort = null;
				this.createTime = null;
			    }
	}


	public WfNodeAttrFieldset(
	    java.lang.Long inFieldsetId,
	    java.lang.Long inNodeId,
	    java.lang.Long inFlowId,
	    java.lang.String inFieldCode,
	    java.lang.String inFieldName,
	    java.lang.Long inSort,
		java.util.Date inCreateTime
	 ) {
		super();
				this.fieldsetId = inFieldsetId;
				this.nodeId = inNodeId;
				this.flowId = inFlowId;
				this.fieldCode = inFieldCode;
				this.fieldName = inFieldName;
				this.sort = inSort;
				this.createTime = inCreateTime;
			}

    @Transient
    public List<JSON> attrs;

    public List<JSON> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<JSON> attrs) {
        this.attrs = attrs;
    }
}

